home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 13176 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  944 b 

  1. Path: access1.digex.net!not-for-mail
  2. From: ell@access1.digex.net (Ell)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Inheritance problem...and other stuff
  5. Date: 24 Mar 1996 03:17:14 GMT
  6. Organization: The Universe
  7. Message-ID: <4j2erq$ik5@news4.digex.net>
  8. References: <4j0ekj$9f6@cloner3.netcom.com> <4j131i$qnu@news1.h1.usa.pipeline.com>
  9. NNTP-Posting-Host: access1.digex.net
  10. X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
  11.  
  12. Pete Grant (grantp@usa.pipeline.com) wrote:
  13. :...
  14. : There are standard idioms (Coplien's book, for example) for simulating 
  15. : virtual constructors -- I have mixed feelings of those since they 
  16. : are just a thin veil for hiding what you are really doing.  There's 
  17. : really no such thing as a virtual constructor in C++ and I feel a bit 
  18. : uneasy with idioms that try to make it look like they exist.  But 
  19. : at the same time, I can see the benefits also. 
  20.  
  21. Stroustrup's C++ PL discusses good uses of the virtual ctor idiom.
  22.  
  23. Elliott
  24.